<template>
  <div :style="backgroundDiv" id="building"></div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      userType:null,
      backgroundDiv : {
        backgroundImage : 'url(' + require('../assets/images/login-background.jpg') + ')',
        backgroundRepeat : 'no-repeat',
        backgroundSize : '100% 100%',
      },
    }
  },
  methods: {

  },
  created() {
    this.userType = this.$store.state.user.userType
    if (this.userType === null){
      this.userType = this.$store.state.user.user.userType;
    }
  }
};
</script>

<style>
#building{
  width:100%;
  height:100%;
  position:fixed;
  background-size:100% 100%;
}
</style>

